<h1>Listing reviews</h1>

<table>
  <tr>
    <th>id</th>
    <th>Proposal</th>
    <th>User</th>
    <th>Review</th>
  </tr>

<% @reviews.each do |review| %>
  <tr>
    <td><%= review.id %></td>
    <td><%= review.proposal_id %></td>
    <td><%= review.user_id %></td>
    <td><%=h review.review %></td>
    <td><%=h review.status %></td>
    <td><%= link_to 'Show', review %></td>
    <td><%= link_to 'Edit', edit_review_path(review) %></td>
    <td><%= link_to 'Destroy', review, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New review', new_review_path %>